<?php
  class Plugins_Credit extends model {
  
  
  
  function getformadd($productid="")
  {
  
  
  
  
  $echo=1;


$code='<div class="creditLanding fs03 clTxt3">
                                <input name="iscredit" value="1" type="checkbox">
                                <div class="reDesign">
                                    <select class="fs01" name="creditset">
                                        <option value="0">Select Coin</option>
                                        <option value="10">10 Coin</option>
                                        <option value="20">20 Coin</option>
                                    </select>
                                </div>
                            </div>';
  

  
  $arraydata['form']=addslashes(str_replace(array("\r", "", "\r"), '', $code));
 // $arraydata['js'][]=pluginjsinfo.'/image.js';
  //$arraydata['js'][]=baseinfo.'/js/jquery.Jcrop.min.js';
 // $arraydata['js'][]=baseinfo.'/js/jquery.iuploader-1.0.js';
  
  
      
  
  
  
  return $arraydata;
  
  
  
  
  
  
  
  }
   
  
  function getformlanding($arraydata)
  {
  
  
  }
  

  
  function getplugin($plugreid)
  {
  
  
  $sql="select * from tb_plugins_credit where plugreid=".$plugreid;
  $arrayplugin=$this->db->db_set_1recordrow($sql);
  
  
    $arrayplugin=array();
  
  
    return $arrayplugin;
  
  
  }
    
  function saveplugin($arraydata,$productid,$plugreid)
  {
  
  
  $arraydata['productid']=$productid;
  
  
  

  
  
  
  $this->db->db_set($arraydata,'tb_product',' productid='.$productid);
  
  }

  
  
  
  
  }
?>
